﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	    : FI.Net Application Framework
// COMPONENT ID	    : FI.Core
// COMPONENT DESC   : FI.Net Core Foundation
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion
namespace FI.Core.IoC
{
    /// <summary>
    /// Control the lifetime of acticated service instance.
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")]
    public enum Lifetime
    {
        /// <summary>
        /// The singleton service instance is got activated for each service activation attempts.
        /// </summary>
        Singleton = 1,

        /// <summary>
        /// Always create a new service instance for each service activation attempts.
        /// </summary>
        Transient = 0
    }
}
